﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditMyInfo.aspx.cs" Inherits="Web.EditMyInfo"%>
<%@ Register TagPrefix="uc1" TagName="TopMenu" Src="TopMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Floor" Src="Floor.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>编辑我的信息 | 海淀区学校素质评测管理平台</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="js/boxy/stylesheets/boxy.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="js/boxy/javascripts/jquery.boxy.js" type="text/javascript"></script>
    <script src="js/module.js" type="text/javascript"></script>
    <script src="js/jquery.form.js" type="text/javascript"></script>
</head>
<body>

<form id="form1" runat="server">
<uc1:TopMenu id='menu1' runat='server'></uc1:TopMenu>
<div id="main">
     <div id="block">
    <h3 id="blocktitle">编辑我的信息</h3>
    <div id="blockcontent">
    <div class="formdiv">当前密码：<input type="password" id="OldPassword" name="OldPassword" /> 必须输入您当前的密码才可继续修改信息</div>
    <div class="formdiv">新的密码：<input type="password" id="NewPassword" name="NewPassword" /> 如果您要修改密码请填写本项</div>
    <div class="formdiv">重复输入：<input type="password" id="ReNewPassword" name="ReNewPassword" /> 为了防止您输入错误，请重新输入您的新密码</div>
    <div class="formdiv">电子邮件：<input type="text" id="Email" name="Email" value="<%=ULEInfo.Email %>" /> </div>
    <div class="formdiv">联系电话：<input type="text" id="Tel" name="Tel" value="<%=ULEInfo.Tel %>" /></div>
    <div class="formdiv">所在学校： 
        <asp:DropDownList ID="schoolList" runat="server" AutoPostBack="True" 
            onselectedindexchanged="schoolList_SelectedIndexChanged">
        </asp:DropDownList>
    </div>
    <div class="formdiv">职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称：<select id="Caste" name="Caste"><option value="1"<%=ChkSelected(ULEInfo.Caste,1)%>>教师</option><option value="2"<%=ChkSelected(ULEInfo.Caste,2)%>>特级教师</option></select></div>
    <div class="formdiv">职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;务：<select id="Business" name="Business">
    <option value="1"<%=ChkSelected(ULEInfo.Business,1)%>>教师</option>
    <option value="2"<%=ChkSelected(ULEInfo.Business,2)%>>年级主任</option>
    <option value="3"<%=ChkSelected(ULEInfo.Business,3)%>>教务主任</option>
    <option value="4"<%=ChkSelected(ULEInfo.Business,4)%>>副校长</option>
    <option value="5"<%=ChkSelected(ULEInfo.Business,5)%>>校长</option>
    </select> </div>
    </div>
    <h3 id="blocktitle">输出报表设置</h3>
    <div id="blockcontent">
        <asp:CheckBoxList ID="chkSchoolSetList" runat="server">
        </asp:CheckBoxList>
    </div>
    <h3 id="blocktitle">个人介绍</h3>
    <div id="blockcontent">
    <div class="formdiv"><textarea id="Intro" name="Intro" rows="15" cols="60"><%=ULEInfo.Intro %></textarea></div>
    </div>
        <div id="blockfloor" style="text-align:center;">
            <asp:Button ID="SaveBut" runat="server" Text="保存" onclick="SaveBut_Click" 
                style="width: 40px" />
        </div>
    </div>
</div>
<script type="text/javascript">
//    var options = {
//        dataType: 'json',
//        beforeSubmit: showRequest,
//        success: showResponse
//    };

//    $("form").submit(function() {
//        $("form").ajaxSubmit(options);
//        return false;
//    });

//    function showRequest(formData, jqForm, options) {
//        $("#SaveBut").attr("disabled", true);
//        return true;
//    }

//    function showResponse(data) {
//        if (data.State == true) {
//            $("#SaveBut").attr("disabled", false);
//            alert("修改成功");
//        }
//        else {
//            $("#SaveBut").attr("disabled", false);
//            alert(data.Message);
//        }
//    }
</script>
<uc1:Floor id='Floor1' runat='server'></uc1:Floor>
    </form>
</body>
</html>
